package cn.bs.busuo.account.dao.persist.repository.impl;

import cn.bs.busuo.account.dao.persist.mapper.SightsRoadsMapper;
import cn.bs.busuo.account.dao.persist.repository.ISightRoadsRepository;
import cn.bs.busuo.account.pojo.entity.SightRoads;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class SightRoadsRepositoryImpl implements ISightRoadsRepository {
    @Autowired
    private SightsRoadsMapper sightsRoadsMapper;

    @Override
    public void addRoads(SightRoads sightRoads) {
        sightsRoadsMapper.insert(sightRoads);
    }

    @Override
    public void deleteRoads(Long id) {
        sightsRoadsMapper.deleteRoads(id);
    }
}
